const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 用户登录令牌
  userId: state => state.user.userInfo.userId, // 用户id
  avatar: state => state.user.userInfo.staffPhoto, // 用户头像
  name: state => state.user.userInfo.username, // 用户名
  company: state => state.user.userInfo.company, // 公司名
  roles: state => state.user.userInfo.roles, // 用户所属角色的权限
  departmentName: state => state.user.userInfo.departmentName // 部门名称
}
export default getters
